package com.qingzhuge.member.dto;


import com.qingzhuge.dto.response.BaseResponseDto;
import com.qingzhuge.member.dto.response.SysMemberDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

/**
 * @author : zero.xiao
 * @description :
 * @date :2018/8/8 0008 上午 9:15
 * @since : 1.0.0
 * @modified :
 */
@ApiModel("用户登录信息")
@EqualsAndHashCode(callSuper = true)
@Getter
@Setter
public class UserLoginResponse extends BaseResponseDto {
    private static final long serialVersionUID = -4339900472381840119L;
    @ApiModelProperty("用户信息")
    private SysMemberDto userInfo;
    @ApiModelProperty("令牌")
    private String token;
    @ApiModelProperty("true：绑定，false：没有绑定，用户是否绑定手机号，如果用户没有绑定手机号，则没有用户信息")
    private boolean bindMobile = true;

    public UserLoginResponse() {
    }

    public UserLoginResponse(int code, String msg) {
        super(code, msg);
    }
}
